home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7356 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  870 b 

  1. Path: cutter.ship.edu!dt1676
  2. From: dt1676@cutter.ship.edu (Dane G. Tritle)
  3. Newsgroups: comp.lang.c++
  4. Subject: MS-Windows Tasks
  5. Date: 21 Feb 1996 20:35:52 GMT
  6. Organization: Shippensburg University, Pennsylvania, USA
  7. Message-ID: <4gfvn8$642@battle.ship.edu>
  8. NNTP-Posting-Host: cutter.ship.edu
  9. Summary: Help on Getting Active Windows Tasks
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. I am writing a task manager for MS-Winodws 3.1 with
  13. Borland C++ 4.0 just for fun.
  14.  
  15. I make a call to the Windows API "EnumWindows()" function,
  16. and my callback function lists the window titles.  The
  17. problem is that I'm getting everything that is running
  18. on the system, and I only want the active user tasks.
  19.  
  20. I have tried to filter the tasks by checking the WS_VISIBLE 
  21. flag through the Windows API "BOOL IsWindowVisible(hwnd)" 
  22. function in the callback, but I still get all of the tasks.
  23.  
  24.     Thanks
  25.